<template>
  <div id="banner-icon">
    <van-tabbar active-color="#FF734c"
                inactive-color="#232628"
                route>
      <van-tabbar-item to="/home"
                       icon-prefix="icon"
                       icon="shouye">首页</van-tabbar-item>
      <van-tabbar-item to="/cate"
                       icon-prefix="icon"
                       icon="fenleisousuo">分类</van-tabbar-item>
      <van-tabbar-item to="/cart"
                       :badge="$store.state.cart.items.length || ''"
                       icon-prefix="icon"
                       icon="gouwuche">购物车</van-tabbar-item>
      <van-tabbar-item to="/user"
                       icon-prefix="icon"
                       icon="wodexuanzhong3x">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>
<style lang="scss" scoped>
#banner-icon {
  /deep/ .icon {
    font-weight: bold;
    font-size: 18px;
  }
}
</style>
